import java.util.Arrays;

public class ArraysDemo01 {
    public static void main(String[] args) {
        //Arrays.toString数组打印
       int[] a ={1,233,444,54,32,454,333,323};
       System.out.println(Arrays.toString(a));
       p(a);//调用p方法
    }
    //写一个p方法
    public static void p(int[] a){
        for (int i = 0; i <a.length ; i++) {
            System.out.print(a[i]+",");
        }
        Arrays.sort(a);//数组排序
        System.out.print(Arrays.toString(a));
        Arrays.fill(a,0);//数组填充
        System.out.println(Arrays.toString(a));
    }

}
